package com.neuedu.pojo;

import java.util.Objects;

public class Business {
    private Integer id;
    private String account;
    private String password;
    private String regTime;
    private String telephone;
    private String contact;

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (!(object instanceof Business business)) {
            return false;
        }
        return Objects.equals(id, business.id) && Objects.equals(account, business.account) && Objects.equals(password, business.password) && Objects.equals(regTime, business.regTime) && Objects.equals(telephone, business.telephone) && Objects.equals(contact, business.contact);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, account, password, regTime, telephone, contact);
    }

    @Override
    public String toString() {
        return "Business{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", regTime='" + regTime + '\'' +
                ", telephone='" + telephone + '\'' +
                ", contact='" + contact + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRegTime() {
        return regTime;
    }

    public void setRegTime(String regTime) {
        this.regTime = regTime;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }
}
